/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cl.ui;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author AJF
 */
public class GameMidlet extends MIDlet {

    private Display display;
    private GameScreen theGame;
    private Command exit;

    public GameMidlet() {
        exit = new Command("Exit", Command.EXIT, 0);
        theGame = new GameScreen(this);
    }

    public void startApp() {
        display = Display.getDisplay(this);
        display.setCurrent(theGame);
        theGame.start();
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
        destroyApp(false);
        notifyDestroyed();
    }

    void showMainScreen() {
        //
    }
}
